package it.patamau.bukkit.deathmatch;

import java.util.HashMap;

/**
 * Wrapper for the recorded stats
 * @author Matteo
 *
 */
public class DMPlayerStats {

	private HashMap<String, DMPlayerStat> dmplayerstats;
	
	public DMPlayerStats(){
		dmplayerstats = new HashMap<String, DMPlayerStat>();
	}
	
	public DMPlayerStat get(String name){
		DMPlayerStat p = dmplayerstats.get(name);
		if(p==null){
			p = new DMPlayerStat(name);
			dmplayerstats.put(name, p);
		}
		return p;
	}
	
}
